package cn.ekuma.epos.subject;

import java.util.Properties;

import cn.ekuma.epos.datalogic.I_DataLogicSales;

import com.openbravo.bean.erp.subject.SubjectProduct;
import com.openbravo.data.basic.BasicException;
import com.openbravo.data.user.DirtyManager;
import com.openbravo.pos.base.AppLocal;
import com.openbravo.pos.panels.AbstractRefProductEditor;

public class SubjectProductEditor extends
		AbstractRefProductEditor<SubjectProduct> {


	public SubjectProductEditor(I_DataLogicSales app, DirtyManager dirty) {
		super(app, dirty, false);
	}

	@Override
	public String getTabName() {
		return AppLocal.getIntString("label.SubjectProduct");
	}

	@Override
	public SubjectProduct createNew(Properties prop) {
		SubjectProduct obj=new SubjectProduct();
		obj.setSubjectId(this.parentNode.getParentKey().getKey());
		return obj;
	}

	@Override
	public void rebuild(SubjectProduct obj) throws BasicException {
		// TODO Auto-generated method stub
	}

	@Override
	public Class getEditClass() {
		return SubjectProduct.class;
	}

}
